#include "mainwindow.h"
#include <QApplication>
#include "OcctView.h"
#include "Viewer.h"
#include "ViewerInteractor.h"
#include <OSD_Environment.hxx>
#include <TopAbs_ShapeEnum.hxx>

int main(int argc, char** argv)
{
    OSD_Environment environment("QTDIR");
    TCollection_AsciiString qtDirValue = environment.Value();
    if (!qtDirValue.IsEmpty())
    {
        QString plugindsDirName = QString(qtDirValue.ToCString()) + "/plugins";
        QApplication::addLibraryPath(plugindsDirName);
    }
    QApplication app(argc, argv);

    MainWindow* mainWindow = new MainWindow();

    mainWindow->show();

    return app.exec();
}
